import 'package:auto_route/auto_route.dart';
import 'package:injectable/injectable.dart';
import 'package:sonora/domain/lib/navigation/sj_app_route_info.dart';
import 'package:sonora/views/navigation/base/sj_base_route_info_mapper.dart';
import 'package:sonora/views/navigation/routes/sj_app_router.dart';
import 'package:sonora/views/sj_home_page.dart';

@LazySingleton(as: SjBaseRouteInfoMapper)
class SjAppRouteInfoMapper extends SjBaseRouteInfoMapper {
  PageRouteInfo map(SjAppRouteInfo appRouteInfo) {
    return appRouteInfo.when(main: () => const SjHomeRoute());
  }
}
